package club.xyes.remotedisplay.screen;

import club.xyes.remotedisplay.jni.AbstractOLEDScreen;
import club.xyes.remotedisplay.jni.OLEDScreen;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 2018/11/14 Create by 郭文梁
 * ScreenConfigure
 *
 * @author 郭文梁
 * @date 2018/11/14
 */
@Configuration
public class ScreenConfigure {
    @Bean
    public OLEDScreen screen() {
        OLEDScreen screen = AbstractOLEDScreen.getInstance(AbstractOLEDScreen.OLED_12864);
        screen.init();
        screen.clear();
        return screen;
    }
}
